﻿using JetBrains.Annotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Auditing;
using Volo.Abp.Domain.Entities;

namespace XfTech.SmartTms.Entities.Issues
{
    /// <summary>
    /// 标签
    /// </summary>
    public class Label : AggregateRoot<Guid>
    {
        public string Name { get; private set; }
        public string Color { get; private set; }

        public ICollection<IssueLabel> Issues { get; set; }

        public Label(Guid id, [NotNull]string name, [NotNull] string color)
        {
            Name = name;
            Color = color;
            Id = id;
        }

        public Label()
        {
        }
    }
}
